import apibase from "@/api/apiBase";
import axios from "axios";

//获取验证码
export const $getCaptcha = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/front/captcha/captcha',
    data: params,
    instance,
  });
}

//获取动态码
export const $saleAchievementMobileCode = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/hmb/api/sendSmsCode',
    data: params,
    instance,
  });
}

//业务员查询业绩前登录
export const $saleAchievementLogin = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/hmb/api/saleAchievement/login',
    data: params,
    instance,
  });
}

//业务员查询业绩
export const $saleAchievementList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/hmb/api/saleAchievement/list',
    data: params,
    instance,
  });
}